package Demo;

public class Demo2 {
    public static void main(String[] args) {
       /*
        String [] arrs={"i love you","but i know you don't like me","so i want to hide myself"};
        for (int i = 0; i <arrs.length ; i++) {
            System.out.printf(arrs[i]+"\t");
        }
        Demo1 dd=new Demo1();
        dd.ss();*/
        lover l = new lover(19, "倩倩", 2);
        l.info();
        l.setAge(18);
        int age = l.getAge();
        l.setHighth(2);
        int highth = l.getHighth();
        l.setName("倩倩");
        String name = l.getName();
        l.info();
    }
}

class lover {
    private int age;
    private String name;
    private int highth;

    public lover(int age, String name, int highth) {
        this.age = age;
        this.name = name;
        this.highth = highth;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setHighth(int highth) {
        this.highth = highth;
    }

    public int getAge() {
        return age;
    }

    public String getName() {
        return name;
    }

    public int getHighth() {
        return highth;
    }

    public void info() {
        System.out.println("a");
    }
}
 